<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios保存一个用户</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    axios({
        method: 'post',
        url: 'http://localhost:8099/user',
        data:{
            username:"newUser",
            password:"123456",
            phone:"123456789",
            info:"{\"age\":20,\"city\":\"北京\"}",
            balance:10000
        }
    }).then((result)=>{
        console.log(result.data);
    }).catch((err=>{
        console.log(err);
    }))
</script>
</head>
<body>

</body>
</html>